//
//  CustomDateActionSheet.h
//  CPICApp
//
//  Created by sinosoft on 13-3-11.
//  Copyright (c) 2013年 lizhiwei. All rights reserved.
//

#import <UIKit/UIKit.h>
@protocol UICustomDateActionSheetDelegate <NSObject>

-(void)ClickDate:(NSString *)Date DateActionSheetTag:(NSInteger)dateActionSheetTag;
@end

@interface CustomDateActionSheet : UIActionSheet
{
    UIToolbar* toolBar;
	UIView* view;
    NSArray *pickerData;
    UIDatePicker *DatepickerView;
}
@property(nonatomic,retain)UIView* view;
@property(nonatomic,retain)UIToolbar* toolBar;
@property(nonatomic,retain)id<UICustomDateActionSheetDelegate>CustomDateDelegate;

/*因为是通过给ActionSheet 加 Button来改变ActionSheet, 所以大小要与actionsheet的button数有关
 *height = 84, 134, 184, 234, 284, 334, 384, 434, 484
 *如果要用self.view = anotherview.  那么another的大小也必须与view的大小一样
 */

-(id)initWithHeight:(float)height WithSheetTitle:(NSString*)title;
-(id)initWithDateOnlyActionHeight:(float)height WithSheetTitle:(NSString*)title;
@end
